"""
生成Windows版本信息文件
"""

def create_version_info():
    """创建版本信息文件"""
    version_info = '''# UTF-8
#
# 版本信息文件，用于Windows可执行文件
#

VSVersionInfo(
  ffi=FixedFileInfo(
    filevers=(1, 0, 0, 0),
    prodvers=(1, 0, 0, 0),
    mask=0x3f,
    flags=0x0,
    OS=0x40004,
    fileType=0x1,
    subtype=0x0,
    date=(0, 0)
  ),
  kids=[
    StringFileInfo(
      [
        StringTable(
          u'080404B0',
          [
            StringStruct(u'CompanyName', u'Smart Clipboard Team'),
            StringStruct(u'FileDescription', u'智能剪切板 - 智能剪切板管理工具'),
            StringStruct(u'FileVersion', u'1.0.0.0'),
            StringStruct(u'InternalName', u'SmartClipboard'),
            StringStruct(u'LegalCopyright', u'Copyright © 2024 Smart Clipboard Team'),
            StringStruct(u'OriginalFilename', u'SmartClipboard.exe'),
            StringStruct(u'ProductName', u'智能剪切板'),
            StringStruct(u'ProductVersion', u'1.0.0.0'),
            StringStruct(u'Comments', u'一个功能强大的剪切板管理工具'),
          ]
        )
      ]
    ),
    VarFileInfo([VarStruct(u'Translation', [2052, 1200])])
  ]
)
'''
    
    with open('version_info.txt', 'w', encoding='utf-8') as f:
        f.write(version_info)
    
    print("✓ 版本信息文件创建完成: version_info.txt")


if __name__ == "__main__":
    create_version_info() 